import 'package:todo_app/thirdpart/flutter_fms/flutter_fms.dart';
import 'package:todo_app/utils/call/CallHelper.dart';
import 'package:todo_app/utils/call/contexts/IdleContext.dart';

/// 等待接听状态
class IdleState extends IState {

  IdleContext? context;

  IdleState({ this.context });

  @override
  void onEnter(IState? prev) {
    print("===========> 进入待机");
    CallHelper.enterIdleFromState();
  }

  @override
  void onExit(IState? next) {
    print("===========> 离开待机");
    CallHelper.exitIdleFromState();
  }

  @override
  String get name => "IdleState";
}